<!DOCTYPE html>
<html lang="en">
<head th:replace="_th-fragment-template :: head-template"><title></title>
</head>

<body>




<!-- 导航 nav -->
<nav th:replace="_th-fragment-template :: nav-menu-template(1)"></nav>

<!--中间内容 div-->
<div class="ui stackable custom-padded-tb-large container animate__animated animate__fadeIn container">
    <div class="ui stackable grid">
        <div class="one wide column"></div>
        <div class="fourteen wide column">
            <div class="ui raised segment">
                <div class="ui middle aligned two column grid">
                    <div class="column">
                        <div class="ui big horizontal link list">
                            <a href="#" class="ui red ribbon label"><h1>Overview</h1></a>
                            <div class="item">
                                <i class="clock outline icon"></i> 2021-7-27
                            </div>
                        </div>
                    </div>
                    <div class="right aligned column">
                        <a class="ui green tag tiny label">tag1</a>
                        <a class="ui blue tag tiny label">tag2</a>
                        <a class="ui pink tag tiny label">tag3</a>
                    </div>
                </div>

                <!-- 正文 -->
                <div  id="content" class="js-toc-content custom-segment-word-lr-responsive custom-padded-tb-large">
                    <h1>标题1</h1>
                    <h1 id="head1">title1</h1>
                    <h2 id="head2">title2</h2>
                    <h3 id="head3">title3</h3>
                    <h4 id="head4">title4</h4>
                    <h5 id="head5">title5</h5>
                    <p>正文123321</p>

                    <!-- 两个例子 -->
                    <h4 class="ui horizontal divider header">
                        <i class="tag icon"></i>
                        Description
                    </h4>
                    <p>狗粮四季皆宜。全球99.8%的狗都吃狗粮。</p>


                    <h4 class="ui horizontal divider header">
                        <i class="bar chart icon"></i>
                        Specifications
                    </h4>
                    <table class="ui definition table">
                        <tbody>
                        <tr>
                            <td class="two wide column">尺寸</td>
                            <td>1" x 2"</td>
                        </tr>
                        <tr>
                            <td>重量</td>
                            <td>6盎司</td>
                        </tr>
                        <tr>
                            <td>颜色</td>
                            <td>浅黄</td>
                        </tr>
                        <tr>
                            <td>气味</td>
                            <td>非常规现象</td>
                        </tr>
                        </tbody>
                    </table>


                </div>

                <!-- 点赞/转发 -->
                <div class="ui right aligned basic segment">
                    <div class="ui mini labeled button" tabindex="0">
                        <div class="ui red basic button">
                            <i class="heart icon"></i> Like
                        </div>
                        <a class="ui basic red left pointing label">
                            1,048
                        </a>
                    </div>
                    <div class="ui mini labeled button" tabindex="0">
                        <div class="ui basic blue button">
                            <i class="fork icon"></i> Forks
                        </div>
                        <a class="ui basic left pointing blue label">
                            1,048
                        </a>
                    </div>
                </div>

                <!-- 赞赏 -->
                <div class="ui basic center aligned segment">
                    <div id="payButton" class="ui orange basic circular button">赞赏</div>
                </div>
                <!-- 赞赏二维码 -->
                <div class="ui payQR following popup transition hidden">
                    <div class="ui yellow basic label">
                        <div class="ui image" style="font-size: inherit !important;">
                            <div class="image">
                                <img src="https://picsum.photos/800/450" alt="" class="ui rounded border image"
                                     style="width: 200px">
                            </div>
                            <div>支付宝</div>
                            <div id="wechat-pay" class="image">
                                <img src="https://picsum.photos/800/450" alt="" class="ui rounded border image"
                                     style="width: 200px">
                            </div>
                            <div>微信</div>
                        </div>
                    </div>
                </div>

                <!-- 文章协议 -->
                <div class="ui positive message">
                    <p>文章协议1</p>
                    <p>文章协议2</p>
                    <p>文章协议3</p>
                </div>

                <!--文章底部 上一篇博客/下一篇博客-->
                <div class="ui basic segment">
                    <div class="ui middle aligned two column grid">
                        <div class="column">
                            <div class="ui big animated orange basic button">
                                <div class="visible content">上一篇</div>
                                <div class="hidden content">
                                    <i class="left arrow icon"></i>
                                </div>
                            </div>
                        </div>
                        <div class="right aligned column">
                            <div class="ui big animated orange basic button">
                                <div class="visible content">下一篇</div>
                                <div class="hidden content">
                                    <i class="right arrow icon"></i>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>

                <br>
                <!-- 留言框 -->
                <a href="#" class="ui yellow basic ribbon label"><h1>评论区</h1></a>
                <!-- 留言预览 -->
                <div id="comment" class="ui bottom segment">
                    <div class="ui basic segment">
                        <div class="ui threaded comments">
                            <div class="comment">
                                <a class="avatar">
                                    <img src="/images/avatar/small/matt.jpg">
                                </a>
                                <div class="content">
                                    <a class="author">Matt</a>
                                    <div class="metadata">
                                        <span class="date">今天下午 5:42</span>
                                    </div>
                                    <div class="text">太赞了！</div>
                                    <div class="actions">
                                        <a class="reply">Reply</a>
                                    </div>
                                </div>
                            </div>
                            <div class="comment">
                                <a class="avatar">
                                    <img src="/images/avatar/small/elliot.jpg">
                                </a>
                                <div class="content">
                                    <a class="author">Elliot Fu</a>
                                    <div class="metadata">
                                        <span class="date">昨天上午12:30</span>
                                    </div>
                                    <div class="text">
                                        <p>這對我的研究是非常有用.謝謝!</p>
                                    </div>
                                    <div class="actions">
                                        <a class="reply">Reply</a>
                                    </div>
                                </div>
                                <div class="comments">
                                    <div class="comment">
                                        <a class="avatar">
                                            <img src="/images/avatar/small/jenny.jpg">
                                        </a>
                                        <div class="content">
                                            <a class="author">Jenny Hess</a>
                                            <div class="metadata">
                                                <span class="date">刚刚</span>
                                            </div>
                                            <div class="text">艾略特你永远是多么正确 :)</div>
                                            <div class="actions">
                                                <a class="reply">Reply</a>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                            <div class="comment">
                                <a class="avatar">
                                    <img src="/images/avatar/small/joe.jpg">
                                </a>
                                <div class="content">
                                    <a class="author">Joe Henderson</a>
                                    <div class="metadata">
                                        <span class="date">5 天以前</span>
                                    </div>
                                    <div class="text">老兄，这太棒了。非常感谢。</div>
                                    <div class="actions">
                                        <a class="reply">Reply</a>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>

                <!-- 输入留言 -->
                <a href="#" class="ui green basic ribbon label"><h1>写评论</h1></a>

                <div class="ui basic segment">
                    <div class="ui form">
                        <div class="field">
                            <textarea name="content" placeholder="都看到这了，不妨留言评论一下？"></textarea>
                        </div>
                    </div>
                </div>
                <!-- 留言底部 输入+按钮 -->
                <div class="ui basic segment">
                    <div class="ui mini form">

                        <div class="ui two column grid">
                            <div class="column">

                                <div class="fields">
                                    <div class="ui icon input">
                                        <i class="user icon"></i>
                                        <div class="field custom-mobile-wide custom-margin-bottom-mini"><input
                                                type="text" name="nickname" placeholder="个性昵称"></div>
                                    </div>
                                    <div class="ui icon input">
                                        <i class="mail icon"></i>
                                        <div class="field custom-mobile-wide custom-margin-bottom-mini"><input
                                                type="text" name="email" placeholder="个人邮箱"></div>
                                    </div>
                                    <div class="ui icon input">
                                        <i class="tv icon"></i>
                                        <div class="field custom-mobile-wide custom-margin-bottom-mini"><input
                                                type="text" name="website" placeholder="个人网站"></div>
                                    </div>

                                </div>
                            </div>
                            <div class="right aligned column">
                                <div class="field custom-margin-bottom-mini custom-mobile-wide">
                                    <button class="positive ui button">
                                        <i class="edit icon"></i> 发布
                                    </button>
                                </div>
                            </div>
                        </div>


                    </div>
                </div>

            </div>

        </div>
        <div class="one wide column"></div>
    </div>
</div>

<!-- 滚动预测有问题 -->
<div id="toolbar" class="padded custom-article-details-buttons-position custom-article-details-buttons-right-bottom" style="display: none !important;">
    <div class="ui padded vertical buttons">
        <button type="button" class="ui toc teal button"><i class="book icon"></i>目录</button>
        <a href="#comment" class="ui teal button"><i class="comments icon"></i>评论</a>
        <a href="#" class="ui teal button"><i class="heart icon"></i>点赞</a>
        <button id="shareButton" class="ui teal button"><i class="paper plane icon"></i>分享</button>
        <div id="share" class="ui following popup transition hidden">
        </div>

        <!-- button之前加 icon 居中 -->
        <button id="button-scroll-bottom-to-top" class="ui teal icon button"><i class="chevron up icon"></i></button>
    </div>
</div>


<!-- TOC -->
<div class="ui toc-container flowing popup transition hidden">
    <ol class="js-toc">

    </ol>
</div>

<!--
  底部元素 footer
-->


<!--
  JQuery/JS
-->
<script>
    $('.menu.toggle').on('click', function () {
        $('.click-to-show-nav-menu-list').toggleClass('custom-mobile-hide-menu');
    });

    $('#payButton').popup({
        popup: $('.payQR.popup'),
        on: 'hover',
        position: 'bottom center'
    });

    $('.toc.button').popup({
        popup: $('.toc-container'),
        on: 'click',
        position: 'left center'
    });

    $('#shareButton').popup({
        popup: $('.share.popup'),
        on: 'hover',
        position: 'left center'
    });

    /*
        1. 按钮点击平滑滚动
        2. window 整个视窗
        3. 滚动至 0 的位置
        4. 花费 1000 毫秒的时间滚动至目标位置
     */
    $('#button-scroll-bottom-to-top').on('click',function(){
        $(window).scrollTo(0,1000)
    })

    var waypoint = new Waypoint({
        element: document.getElementById('toolbar'),
        handler: function(direction) {
            if(direction === 'down'){
                $('#toolbar').show(300);
            }else{
                $('#toolbar').hide(300);
            }
            console.log('Scrolled to waypoint! ' + direction)
        },
        //offset: 1//20 -->px
    })

    tocbot.init({
        // Where to render the table of contents.
        tocSelector: '.js-toc',
        // Where to grab the headings to build the table of contents.
        contentSelector: '.js-toc-content',
        // Which headings to grab inside of the contentSelector element.
        headingSelector: 'h1, h2, h3, h4',
        // For headings inside relative or absolute positioned containers within content.
        hasInnerContainers: true
    });

    hljs.initHighlightingOnLoad();
    
    var qrcode = new QRCode("share", {
        text: "https://lemonsoldout-1302164606.cos.ap-shanghai.myqcloud.com/images/1627191612846-wallhaven-dg1rjo.png",
        width: 100,
        height: 100,
        colorDark : "#000000",
        colorLight : "#ffffff",
        correctLevel : QRCode.CorrectLevel.H
    });


</script>

</body>
</html>